import { lazy } from "react";

import Home from '../pages/home/Index'
import { Navigate } from "react-router-dom";
let Index=lazy(()=>import('../pages/index/Index'))
let User=lazy(()=>import('../pages/user/Index'))

export const homee=[
    {
        path:'/home/index',
        element:<Index></Index>,
        title:'首页'
    },
    {
        path:'/home/user',
        element:<User></User>,
        title:'后台管理'
    }
]

const home=[
    {
        path:"/",
        element:<Navigate to={'/home/index'}></Navigate>
    },
    {
        path:'/home',
        element:<Home></Home>,
        children:homee
    }
]

export default home



